package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Xypjjl generated by hbm2java
 */
@Entity
@Table(name = "xypjjl")
public class Xypjjl implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private String result1;
    private String result2;
    private String result3;
    private Double result4;
    private String cpdj;
    private String pjscrymc;
    private String pjscrymc2;
    private String pjscryyj;
    private String zjwyhyj;
    private String zzxydj;
    private String kssj;
    private String jzsj;

    public Xypjjl()
    {
    }

    public Xypjjl( Long id, long ny )
    {
        this.id = id;
        this.ny = ny;
    }

    public Xypjjl( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   long ny,
                   String result1,
                   String result2,
                   String result3,
                   Double result4,
                   String cpdj,
                   String pjscrymc,
                   String pjscrymc2,
                   String pjscryyj,
                   String zjwyhyj,
                   String zzxydj,
                   String kssj,
                   String jzsj)
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.result1 = result1;
        this.result2 = result2;
        this.result3 = result3;
        this.result4 = result4;
        this.cpdj = cpdj;
        this.pjscrymc = pjscrymc;
        this.pjscrymc2 = pjscrymc2;
        this.pjscryyj = pjscryyj;
        this.zjwyhyj = zjwyhyj;
        this.zzxydj = zzxydj;
        this.kssj = kssj;
        this.jzsj = jzsj;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "result_1", length = 4)
    public String getResult1()
    {
        return this.result1;
    }

    public void setResult1( String result1 )
    {
        this.result1 = result1;
    }

    @Column(name = "result_2", length = 4)
    public String getResult2()
    {
        return this.result2;
    }

    public void setResult2( String result2 )
    {
        this.result2 = result2;
    }

    @Column(name = "result_3", length = 4)
    public String getResult3()
    {
        return this.result3;
    }

    public void setResult3( String result3 )
    {
        this.result3 = result3;
    }

    @Column(name = "result_4", precision = 53, scale = 0)
    public Double getResult4()
    {
        return this.result4;
    }

    public void setResult4( Double result4 )
    {
        this.result4 = result4;
    }

    @Column(name = "cpdj", length = 10)
    public String getCpdj()
    {
        return this.cpdj;
    }

    public void setCpdj( String cpdj )
    {
        this.cpdj = cpdj;
    }

    @Column(name = "pjscrymc", length = 10)
    public String getPjscrymc()
    {
        return this.pjscrymc;
    }

    public void setPjscrymc( String pjscrymc )
    {
        this.pjscrymc = pjscrymc;
    }

    @Column(name = "pjscrymc2", length = 10)
    public String getPjscrymc2()
    {
        return this.pjscrymc2;
    }

    public void setPjscrymc2( String pjscrymc2 )
    {
        this.pjscrymc2 = pjscrymc2;
    }

    @Column(name = "pjscryyj", length = 300)
    public String getPjscryyj()
    {
        return this.pjscryyj;
    }

    public void setPjscryyj( String pjscryyj )
    {
        this.pjscryyj = pjscryyj;
    }

    @Column(name = "zjwyhyj", length = 300)
    public String getZjwyhyj()
    {
        return this.zjwyhyj;
    }

    public void setZjwyhyj( String zjwyhyj )
    {
        this.zjwyhyj = zjwyhyj;
    }

    @Column(name = "zzxydj", length = 10)
    public String getZzxydj()
    {
        return this.zzxydj;
    }

    public void setZzxydj( String zzxydj )
    {
        this.zzxydj = zzxydj;
    }

    @Column(name = "kssj", length = 10)
    public String getKssj()
    {
        return this.kssj;
    }

    public void setKssj( String kssj )
    {
        this.kssj = kssj;
    }

    @Column(name = "jzsj", length = 10)
    public String getJzsj()
    {
        return this.jzsj;
    }

    public void setJzsj( String jzsj )
    {
        this.jzsj = jzsj;
    }
}
